package p2pEngine;

public class Manipulator{
	
	public Manipulator(){}
	
	//merges string arrays into one string//
	/*public String arr2str ( String[] arr )
	{
		StringBuffer strbf = new StringBuffer();
	    while (arr.length > 0) 
	    {
	        strbf.append(arr[0]);
	        for (int i=1; i < arr.length; i++)
	        {
	            strbf.append(arr[i]);
	        }
	    }
	    return arr.toString();
		
	}*/
	
	//creates array in which each cell contains one word//
	public String[] str2arr( String str )
	{
		String[] temp = str.split(" ");
		return temp;
	}
	
}